package com.sidianzhong.sdz.service;

import com.sidianzhong.sdz.model.*;
import com.sidianzhong.sdz.utils.PageInfo;
import com.alibaba.fastjson.JSONObject;
import java.util.List;

/**
* Created by hxgqh on 2016/1/7.
*/
public interface BannerService {

    Banner create(Banner item);

    int delete(Integer id);

    int update(Banner item);

    Banner get(Integer id);

    PageInfo<Banner> getListWithPaging(Integer pageNum, Integer pageSize,
                                       String sortItem, String sortOrder, Banner item);

    List<Banner> getList(Integer pageNum, Integer pageSize,
                         String sortItem, String sortOrder, Banner item);

    PageInfo<JSONObject> getListWithObject(Integer pageNum, Integer pageSize,
                                           String sortItem, String sortOrder, Banner item);

    String selectValueByKey(String Key);
}
